package org.me.rmi.Client;

import org.me.rmi.Interface.IPerson;
import org.me.rmi.Stub.PersonStub;

/**
 * Created by wangyg on 2016/11/1.
 */
public class PersonClient {
	public static void main(String[] args) {
		try {
			PersonStub person = new PersonStub();
			int age = person.getAge();
			String name = person.getName();

			System.out.println(name + " is " + age + " years old");
		} catch (Throwable t) {
			t.printStackTrace();
		}
	}
}
